﻿using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Input;

namespace VipReminder.Views
{
    /// <summary>
    /// WorkBreak.xaml 的交互逻辑
    /// </summary>
    public partial class About
    { 
        public About()
        {
            InitializeComponent();
            Topmost = true;
        }


        private void DockContainer_OnDragMove(object sender, MouseButtonEventArgs e)
        {
            switch (e.ClickCount)
            {
                // Background="White"  不加这个属性，不能拖拽
                case 1://单击
                {
                    //if (e.LeftButton == MouseButtonState.Pressed)
                    //{
                    //    if (WindowState == WindowState.Maximized)
                    //    {
                    //        WindowState = WindowState.Normal;
                    //    }
                    //}
                    this.DragMove();
                    break;
                }
                case 2://双击
                {  
                    break;
                }
            }
        }



        private void Close_OnClick(object sender, RoutedEventArgs e)
        {
            this.Close();
        }


        private void OpenWeb_OnMouseDown(object sender, MouseButtonEventArgs e)
        {
            Process.Start(new ProcessStartInfo("http://www.vipsoft.com.cn"));
        }
    }
}
